using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Input.Touch;
using Microsoft.Xna.Framework.Media;
using System.IO;
using System.IO.IsolatedStorage;
using System.Net;

namespace MemoryGame
{


public class Map
{
	public static int mAllScore = 0;
	public static long mTimerDecrease = 0;
	public static long totalTimePlayGame = 0;		

	public static long lastTimeRandomFruitObkect = 100;
	public static long countTimeRandomFruitObject = 500;

	public static long countTimeCreateSpecial = 15000;
	public static long lastTimeCreateSpecial = 0;
	public static int MINI_MUN_SPEED = 10;
    //easy mode
    public static int GAME_EASY_COL = 4;
    public static int GAME_EASY_ROW = 4;
    //normal
    public static int GAME_NORMAL_COL = 4;
    public static int GAME_NORMAL_ROW = 5;
    //hard
    public static int GAME_HARD_COL = 5;
    public static int GAME_HARD_ROW = 5;
    //extreme
    public static int GAME_EXTREME_COL = 5;
    public static int GAME_EXTREME_ROW = 6;

    public static int GAME_MODE_EASY = 0;
    public static int GAME_MODE_NORMAL = 1;
    public static int GAME_MODE_HARD = 2;
    public static int GAME_MODE_EXTREME = 3;
    public static int gameDifficultMode = 0;
	
	public static Random random = new Random();

	//	public static int countSelectOneFrame = 0;
	//	public static FruitObject comboEffect;

    public static CellTable celltable;
	public static void Init()
	{
        celltable = new CellTable();

        celltable.NewGame(T.CURRENT_I1, T.CURRENT_I2);
        
	}

	public static void DrawGame(SpriteBatch c)
	{
        celltable.Draw(ref c);
	}

	public static void Update()
	{
	    //celltable.t
        celltable.Touch();
	}

	

	private static void randomFruitObject()
	{
		
     
	}
	

}
}